package com.xiaoyu.lanling.feature.coin.model

import `in`.srain.cube.request.JsonData
import `in`.srain.cube.views.list.ListItemTypedBase
import java.io.Serializable

class CoinProductItem(jsonData: JsonData) : ListItemTypedBase, Serializable {

    val productId = jsonData.optString("productId")
    val subject = jsonData.optString("subject")
    val price = jsonData.optString("price")
    val productData = jsonData.optJson("productData")
    val chargeTag = jsonData.optString("chargeTag")

    override fun getViewType(): Int {
        return 0
    }
}